package twoRegInstructions;

import java.io.FileNotFoundException;
import java.io.IOException;

import main.MIPSSimulator;


public class Xori extends MIPSTwoRegInstruction {
	public Xori(String input) throws FileNotFoundException, IOException {
		super(input);
		myName = "xori";
	}

	@Override
	public void execute() {
		int regOne = MIPSSimulator.myRegisters.get(myRegisterOne);
		MIPSSimulator.myRegisters.put(myRegisterTwo, regOne ^ myImmediateValue);
	}
}
